package org.bluedream.comm.utils.excel;

import lombok.Getter;
import lombok.Setter;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName BaseExcel
 * @Description TODO
 * @Author foxsand
 * @Data 2021-09-03 9:20
 * @Version
 */
public class BaseExcel implements Serializable {
    private static final long serialVersionUID = -3613807567180016253L;
    public static final String DEFAULT_FILE_NAME = "template";
    public static final String DEFAULT_SHEET_NAME = "sheet1";
    public static final int XLSX_MAX_ROW_NUMBER = 1048576;
    public static final int XLSX_MAX_COLUMN_NUMBER = 16384;
    public static final int XLS_MAX_ROW_NUMBER = 65536;
    public static final int XLS_MAX_COLUMN_NUMBER = 256;

    //excel的实体类注解
    @Getter
    protected List<ExcelAnnotationAnalysis> annotationAnalyses;
    @Getter
    protected Workbook workbook;
    @Getter
    protected Sheet sheet;
    //数据行集合
    @Getter
    protected List<?> dataList;
    @Setter
    @Getter
    protected String sheetName;
    @Setter
    @Getter
    protected String fileName;

}
